<template lang="pug">
  keep-alive
    kalix-table(bizKey="bsmRoute" title='bsm图路径' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="bsmRouteURL"
    v-bind:bizDialog="bsmRouteDialog"
    v-bind:btnList="bsmRouteBtnList"
    v-bind:buttonPermissionPrefix="buttonPermissionPrefix"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="BsmRouteSearch")
</template>

<script type="text/ecmascript-6">
  import {KshBsmRouteURL, bsmRouteBtnPermissionPrefix} from '../config.toml'
  import {bsmRouteConfigBtnList} from './config'
  import KalixTable from '../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-ksh-bsmroute',
    components: {KalixTable},
    data() {
      return {
        bsmRouteURL: KshBsmRouteURL,
        tableFields: [
          {prop: 'bsmRoute', label: '路径'}
        ],
        bsmRouteDialog: [
          {id: 'add', dialog: 'BsmRouteAdd'},
          {id: 'view', dialog: 'BsmRouteView'},
          {id: 'edit', dialog: 'BsmRouteEdit'}
        ],
        bsmRouteBtnList: bsmRouteConfigBtnList,
        buttonPermissionPrefix: bsmRouteBtnPermissionPrefix,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
